home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Poll.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  516 b   |  35 lines

  1. /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __POLL_H
  7. #define __POLL_H 1
  8.  
  9. #if __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. struct pollfd 
  14. {
  15.     int fd;
  16.     short events;
  17.     short revents;
  18. };
  19.  
  20. #define POLLIN        001
  21. #define POLLPRI        002
  22. #define    POLLOUT        004
  23. #define POLLERR        010
  24. #define POLLHUP        020
  25. #define POLLNVAL    040
  26. #define NPOLLFILE    20
  27.  
  28. int __cdecl poll(struct pollfd[], unsigned long, int);
  29.  
  30. #if __cplusplus
  31. }
  32. #endif
  33.  
  34. #endif
  35.